<?php

namespace app\api\controller;

use app\common\controller\Api;
use think\Db;
use app\api\service\SaleRank as SaleRankService;

/**
 * 公共接口
 */
class SaleRank extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = '*';

    /**
     * 统计销售排行榜
     */
    public function saleRank(){
        // echo date('Y-m-t', strtotime('last month'));die;
        $saleRankService = new SaleRankService();
        $saleRankService->saleRank();
        $this->success("");
    }



}